<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( ! function_exists('myform_infobox'))
{
	function myform_infobox($level, $message)
	{
		if ($level == 'error')
		{
			$classBox = 'errorBox';
			$classImg = 'imgNOk';
		}
		else
		{
			$classBox = 'infoBox';
			$classImg = 'imgOk';
		}
		
		return '<div class="'.$classBox.'"><div class="'.$classImg.'"></div>'.$message.'</div>';
	}
	
	function myform_infomsg($level, $message)
	{
		if ($level == 'error')
		{
			$class = 'errorMsg';
		}
		else
		{
			$class = 'infoMsg';
		}
		
		return '<p class="'.$class.'">'.$message.'</p>';
	}
}

